<?php

namespace Edmmss\DingXiang\Model;

class CaptchaResponse
{
    public $result;             // 调用结果
    public $serverStatus;       // 标记调用服务状态 "" 表示调用正常 不为空，表明调用服务异常
    public $ip;                 // 验证码校验时的ip地址

    public function __construct($result, $serverStatus, $ip)
    {
        $this->result = $result;
        $this->serverStatus = $serverStatus;
        $this->ip = $ip;
    }

    public function setResult($result)
    {
        $this->result = $result;
    }

    public function setServerStatus($serverStatus)
    {
        $this->serverStatus = $serverStatus;
    }

    public function setIp($ip)
    {
        $this->ip = $ip;
    }
}